<%--
Created by IntelliJ IDEA.
User: SongTiantian
Date: 2020/11/18
Time: 17:33
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <%@include file="/front-end/views/common/head.jsp"%>
    <script>
        $(function () {
            $("a.glyphicon-repeat").click(function () {
                return confirm("你确定要将用户【" + $(this).parent().parent().find("td:first").text() + "】的密码重置为000000吗?");
            });
        });
    </script>
</head>
<body>
<nav class="navbar navbar-default">
  <div class="container-fluid">
      <%@include file="/front-end/views/common/manage_menu.jsp"%>
  </div>
</nav>
    <table class="table table-hover">
        <thead>
            <tr style="height: 12px;">
                <th>用户id</th>
                <th>用户昵称</th>
                <th>手机号码</th>
                <th>重置</th>
            </tr>
        </thead>
        <tbody>
        <c:forEach items="${requestScope.page.items}" var="user" >
            <tr>
                <td>${user.id}</td>
                <td>${user.username}</td>
                <td>${user.phone}</td>
                <td><a href="manage/usermanageServlet?action=resetPassword&id=${user.id}&pageNo=${requestScope.page.pageNo}" class="glyphicon glyphicon-repeat" aria-hidden="true"></a></td>
            </tr>
        </c:forEach>

        </tbody>
    </table>
<%@include file="/front-end/views/common/page_nav.jsp"%>
<%-- <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">--%>
<%--        $('#myModal').on('shown.bs.modal', function () {--%>
<%--          $('#myInput').focus()--%>
<%--        })--%>
<%--    </script>--%>
<%--<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>--%>
<%--<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>--%>

</body>
</html>